PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawLine Method / drawLine(PDFPen,PDFPoint,PDFPoint) Method
Pen that determines the color, width, and style of the line.
Object that represents the first point to connect.
Object that represents the second point to connect.
In This Topic
    drawLine(PDFPen,PDFPoint,PDFPoint) Method
    In This Topic
    Draws a line connecting two Objects.
    Syntax
    public void drawLine( 
       PDFPen pen,
       PDFPoint pt1,
       PDFPoint pt2
    )

    Parameters

    pen
    Pen that determines the color, width, and style of the line.
    pt1
    Object that represents the first point to connect.
    pt2
    Object that represents the second point to connect.
    See Also